/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package meteocal.weather;

/**
 *
 * @author andrea
 */
public enum Weather {
    SUNNY (0),
    CLOUDY (1),
    SNOWY (2),
    RAINY (3),
    THUNDERSTORM(4),
    STAY_HOME(5);
    
    private final int weather;
    
    Weather(int weather){
        this.weather = weather;
    }
    
    public boolean isBetterThan(Weather other){
        return this.weather < other.weather;
    }
    
    public boolean isBetterThan(int other){
        return this.weather < other;
    }
    
    public boolean isWorseThan(Weather other){
        return this.weather > other.weather;
    }
    
    public boolean isWorseThan(int other){
        return this.weather > other;
    }

    public int getValue() {
        return this.weather;
    }
    
}
